package com.example.threemoni.mapper;

import com.example.threemoni.pojo.Goods;
import com.example.threemoni.pojo.Type;
import com.example.threemoni.pojo.vo.GoodsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2023/10/25
 * @Version 1.0
 **/
public interface GoodsMapper {

    List<GoodsVo> findGoods(Integer tid);

    int addGoods(Goods goods);

    List<Type> findTypes();

    int hasName(String gname);

    int delete(@Param("split") String[] split);
}
